package com.foreknow.demo4;

/**
 * @author shkstart
 * @create 2021-07-26 15:10
 */
public class Dog extends Pet {
    @Override
    public void toHospital() {
        this.setHealth(60);
    }
    @Override
    public void eat(){
        System.out.println("狗吃骨头");
    }

    public void run(){
        System.out.println(this.getName()+"run......");
    }
}
